//
//  GdmapPoiFlutterStreamManager.m
//  flutter_plugin_gdmap
//
//  Created by Xiaoka on 2021/8/30.
//

#import "GdmapPoiFlutterStreamManager.h"

@implementation GdmapPoiFlutterStreamManager

+ (instancetype)sharedInstance {
    static dispatch_once_t onceToken;
    static GdmapPoiFlutterStreamManager *manager = nil;
    dispatch_once(&onceToken, ^{
        manager = [[GdmapPoiFlutterStreamManager alloc] init];
        GdmapPoiFlutterStreamHandler * streamHandler = [[GdmapPoiFlutterStreamHandler alloc] init];
        manager.streamHandler = streamHandler;
    });

    return manager;
}

@end

@implementation GdmapPoiFlutterStreamHandler

- (FlutterError* _Nullable)onListenWithArguments:(id)arguments eventSink:(FlutterEventSink)eventSink {
    self.eventSink = eventSink;
    return nil;
}

- (FlutterError* _Nullable)onCancelWithArguments:(id)arguments {

    return nil;
}

@end
